package com.office.onlineInformation.draftBox.service;

import com.office.onlineInformation.draftBox.pojo.OaOnlineMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.office.util.PageModel;

import java.io.IOException;
import java.text.ParseException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 88168
 * @since 2022-10-25
 */
public interface draftBoxService extends IService<OaOnlineMessage> {
    /**
     *  添加留言
     * @param onlineMessage
     * @return
     */
    public String addMessage(OaOnlineMessage onlineMessage);
    /**
     *  删除留言
     * @param informationId
     * @return
     */
    String deleteMessage(int informationId);

    /**
     * 更新草稿箱留言
     * @param onlineMessage
     * @return
     */
    String updateMessage(OaOnlineMessage onlineMessage);

    /**
     * 查询草稿箱留言
     * @param customManage
     * @param pageModel
     * @return
     */
    public PageModel<OaOnlineMessage> getList(OaOnlineMessage customManage, PageModel<OaOnlineMessage> pageModel) throws IOException;
    /**
     * 根据id查询留言
     * @param informationId
     * @return
     */
    OaOnlineMessage getById(int informationId);
}
